Project 16 Capacitive Touch Module Control LED
1.Introduction
Capacitance touch module supplies one touch key to detect IC. In order to replace traditional key with changeable area key, touch detecting IC is designed. In this project, we use graphical programming and control the on and off of LED by capacitive touch module.
2.Materials Required
KEYESTUDIO UNO Control Board *1
V5 Sensor Shield*1
Piranha LED*1
Copacitive Touch Module*1
Female to Female Dupont Line*6
3.Connection Diagram


4.Sample Code
void setup()
{
pinMode( 4 , INPUT);
pinMode( 10 , OUTPUT);
}
void loop()
{
if (( digitalRead(4) && HIGH ))
{
digitalWrite( 10 , LOW );
}
else
{
digitalWrite( 10 , HIGH );
}
}
5.Result
After the program is downloaded, we can use capacitive touching module to control LED.